package model;

import java.io.Serializable;


/**
 *
 * @author Mario
 */
public class Usuario extends Persona implements Serializable {
    private String userName;
    private String password="password";

    public Usuario(String nombre, String apellido, String dni,String pass){
        super(nombre, apellido, dni);
        this.password=pass;
    }

    public Usuario(String nombre, String apellido, String dni,String pass,String userName){
        super(nombre, apellido, dni);
        this.password=pass;
        this.userName=userName;
    }

    public boolean validarUsuario(String password){

        boolean retorno=false;

        if(this.password.equals(password)){

           retorno=true;
        }

        return retorno;
    }


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }


}
